﻿#ifndef PLCTHREAD_H
#define PLCTHREAD_H

#include <QObject>
#include <QThread>
#include "plcworker.h"

class PlcThread : public QObject
{
	Q_OBJECT
public:
	explicit PlcThread(QObject *parent = nullptr);
	~PlcThread();
	void Initialize();
	void start();

signals:
    void sigInitialize();       // 触发线程初始化
    void sigStart();            // 用于触发新线程中的耗时操作函数

	public slots:
public:
	QThread m_workThread;
	PlcWorker *m_worker;
};

#endif // PLCTHREAD_H
